package com.dollama.random.model.remote;


import com.dollama.random.model.entity.Book;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by tony on 2017/5/4.
 */

public interface RetrofitService {
    /**
     * https://api.douban.com/v2/book/search?q=Head%20First%20Servlet%20JSP&tag=&start=0&count=1
     * */
//    @GET("book/search")
//    Call<Book> getSearchBook(@Query("q") String name,
//                             @Query("tag") String tag,
//                             @Query("start") int start,
//                             @Query("count") int count);

    @GET("book/search")
    Observable<Book> getSearchBook(@Query("q") String name,
                                   @Query("tag") String tag, @Query("start") int start,
                                   @Query("count") int count);
}
